const { ipcRenderer } = require('electron');
const Msg = require('../msg');
new Vue({
    el: '#app',
    data: {
        number: 0,
    },
    created () {
        ipcRenderer.on(Msg.GetPageValue, (event, data) => {
            event.sender.send(this.number.toString());
        });
    },
    methods: {
        createWin () {
            let data = ipcRenderer.sendSync(Msg.CreateWin, 'renderer');
            console.log(data);
        }
    }
});